package cn.com.infosec.ra.dao.userdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import cn.com.infosec.ra.entity.AdminOperatorEntity;
import cn.com.infosec.ra.util.Pagination;

public interface UserDao {
	@Select("select * from INS_ManagerInfo where operatoraccount=#{operatoraccount}")
	public AdminOperatorEntity getOperator(
			@Param(value = "operatoraccount") String operatoraccount);

	public void saveAdminOP(AdminOperatorEntity adminOP);

	public void updateAdminOperator(AdminOperatorEntity adminOP);

	public List<AdminOperatorEntity> queryUserByPager(
			@Param(value = "operatorType") String operatorType,
			@Param(value = "operatorOrganid") int operatorOrganid,
			@Param(value = "pager") Pagination<AdminOperatorEntity> pager);

	public List<AdminOperatorEntity> queryUser(
			@Param(value = "operatorType") String operatorType,
			@Param(value = "operatorOrganid") int operatorOrganid);

	public List<AdminOperatorEntity> queryUserByPagerOracle(
			@Param(value = "operatorType") String operatorType,
			@Param(value = "operatorOrganid") int operatorOrganid,
			@Param(value = "pager") Pagination<AdminOperatorEntity> pager);
}
